<template>
   <div class="fixed">
        <div class="box">
            <div class="item1">语文</div>
            <div class="item2">数学</div>
            <div class="item3">英语</div>
            <div class="item4">科学</div>
        </div> 
    </div>
</template>
<script>
export default {
    data() {
        
    },
    methods:{
    }
}
</script>
<style scoped>
         .item1,
         .item2,
         .item3,
         .item4{
            height: 60px;
            width: 100px;
            background: gray;
            line-height: 60px;
            text-align: center;
            cursor: pointer;
        }
        .item1:hover,
        .item2:hover,
        .item3:hover,
        .item4:hover{
            background: hotpink;
        }
        .box{
            display: flex;
            background: rgb(21, 214, 214);
            flex-direction: row;
            height: 60px;
            justify-content: center;
            margin-bottom: 10px;
        }
        .fixed{
            display: flex;
            top: 0px;
            left: 40%;
            position: fixed;
        }
    </style>